package com.qdrtme.landemo.api;

import android.content.Context;

import com.qdrtme.landemo.BaseApi;

import org.json.JSONException;

import java.util.HashMap;

/**
 * @Created by taylor on 12/11/17.
 * @class description 获取用户信息
 */

public class GetUserInfoApi extends BaseApi {

    private String uid;
    private String token;
    private String tenantid;

    public GetUserInfoApi(Context c) {
        super(c);
    }


    @Override
    protected String getURL() {
        return BaseApi.GET_USER_DETAIL;
    }

    @Override
    protected void getParams(HashMap<String, Object> params) {
        super.getParams(params);
        params.put("uid", uid);
        params.put("token", token);
        params.put("tenantid", tenantid);
    }

    @Override
    protected boolean analysisOutput(String result) throws JSONException {
        return true;
    }

    public void setTenantid(String tenantid) {
        this.tenantid = tenantid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
